Calling API functions

 

pinEdit in frame document

If you have a frame document named “fraEditor” then call the API functions with:

 

top.fraEditor.<API function>

 

 

pinEdit in IFRAME

 

If you have in IFRAME on your page called “editorFrame” with pinEdit loaded you can access the API functions with:

 

document.getElementById("editorFrame").contentWindow.<API function>

 

Sample(read HTML content)

var editor = document.getElementById("editorFrame").contentWindow

var html   = editor.editGetHtml();